package com.leonzx.base.dao.system;

import com.leonzx.base.entity.system.Role;
import com.leonzx.base.utils.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Author:张勇
 * @Description:
 * @Date: 2018-06-08 15:09
 */

@Repository
public interface RoleDAO extends MyMapper<Role> {


    List<Role> findByUserIdAndState(@Param("userId") String userId, @Param("state") Integer state);

    List<Role> findTempRoleByUserIdAndState(@Param("userId") String userId, @Param("state") Integer state);

    List<Role> getMyRolesOutHis(@Param("myId")String myId,@Param("hisId")String hisId,@Param("name") String name);

}
